package com.ruoyi.work.service;

import java.util.List;

import com.ruoyi.common.core.page.Pages;
import com.ruoyi.common.ehance.MyService;
import com.ruoyi.work.domain.WorkOrderDetail;

/**
 * 工单明细Service接口
 * 
 * @author xwj
 * @date 2024-08-13
 */
public interface IWorkOrderDetailService extends MyService<WorkOrderDetail> {
    /**
     * 查询工单明细
     * 
     * @param id 工单明细主键
     * @return 工单明细
     */
    public WorkOrderDetail selectWorkOrderDetailById(Long id);

    /**
     * 查询工单明细列表
     * 
     * @param workOrderDetail 工单明细
     * @return 工单明细集合
     */
    public List<WorkOrderDetail> selectWorkOrderDetailList(WorkOrderDetail workOrderDetail);

    /**
     * 新增工单明细
     * 
     * @param workOrderDetail 工单明细
     * @return 结果
     */
    public WorkOrderDetail insertWorkOrderDetail(WorkOrderDetail workOrderDetail);

    /**
     * 修改工单明细
     * 
     * @param workOrderDetail 工单明细
     * @return 结果
     */
    public WorkOrderDetail updateWorkOrderDetail(WorkOrderDetail workOrderDetail);

    /**
     * 批量删除工单明细
     * 
     * @param ids 需要删除的工单明细主键集合
     * @return 结果
     */
    public int deleteWorkOrderDetailByIds(Long[] ids);

    /**
     * 删除工单明细信息
     * 
     * @param id 工单明细主键
     * @return 结果
     */
    public int deleteWorkOrderDetailById(Long id);

    int delete(WorkOrderDetail workOrderDetail);

    Pages<WorkOrderDetail> queryPage(WorkOrderDetail workOrderDetail);
}
